-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Netlink tile #4049
Netlink tile #4049
Conversation
ebeee1a
to
1e5f22d
Compare
src/app/fdctl/config/default.toml
Outdated
# See `ip route show table all` | ||
max_routes = 128 | ||
|
||
# The maximum number of Ethernet neighbors (aka ARP table entries). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would simplify this summary a little bit, for operators that might not know what ARP is, but have decent networking knowledge, with a bit more detail below.
c7e6369
to
73f65cd
Compare
@mmcgee-jump Thanks for the review. I addressed all the code concerns. I'll need some help with documentation for the config. I suggest we update the default config file later? |
ef2189f
to
4bfee16
Compare
f899f8b
to
f34ce62
Compare
|
||
/* Step 4: Update metadata */ | ||
|
||
fib4->generation++; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be:
Step 1: Indicate we are mid write
Step 2: Make default route negative
Step 3: Disable all other routes
Step 4: Update metadata (to indicate write complete)
If not, you may as well do fib4->generation += 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nbridge-jump The reader doesn't care whether generation is odd or even. It just checks whether the generation is the same before and after. If it isn't, it returns a blackhole route. "Make default route negative" and "disable all other routes" have the same effect - returning a blackhole route.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then make it fib4->generation += 2
Adds a simple pure FIB implementation compatible with Linux
f34ce62
to
11987e0
Compare
Moving to #4141 |
Relates to #692
Closes #3619